package com.cn.kehong.dao;

import com.cn.kehong.domain.PlanMoth;
import com.cn.kehong.domain.PlanMothExample;
import java.util.List;

import com.cn.kehong.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

public interface PlanMothMapper {
    int countByExample(PlanMothExample example);

    int deleteByExample(PlanMothExample example);

    int insert(PlanMoth record);

    int insertSelective(PlanMoth record);

    PlanMoth selectPlanMothById(String id);

    List<PlanMoth> selectTodayYearPlanMothDatas(String yearMoth);
    List<PlanMoth> selectAllYearPlanMothDatas(QueryForm queryForm);

    List<PlanMoth> selectByExample(PlanMothExample example);
    List<PlanMoth> selectPlanMothList(QueryForm queryForm);
    int selectPlanMothListCount(QueryForm queryForm);

    PlanMoth selectLatestPlanMothByMoth(String yearMoth);

    int updateByExampleSelective(@Param("record") PlanMoth record, @Param("example") PlanMothExample example);

    int updateByExample(@Param("record") PlanMoth record, @Param("example") PlanMothExample example);

    int batchUpdatePlanMoths(List<PlanMoth> records);
}